#include "operacion.h"


operacion::operacion()
{
}
double operacion::exp(double a, int b){

    double d=1;
    if(b<0){
        for(int c=0; c>b; c--){
        d=d/a;
        }
    }
    else{
        for(int c=0; c<b; c++){
        d=a*d;
        }
    }
    return d;
}
double operacion::resta(double a, double b){
    return a-b;
}
double operacion::suma(double a, double b){
    return a+b;
}
/*double operacion::raiz(double a, int b){

    return 0;
}*/

